﻿using System.Collections.Generic;

namespace EfCore.Core
{
    public class City
    {
        public City()
        {
            CityCompanies = new HashSet<CityCompany>();
        }
        public int Id { get; set; }
        public string Name { get; set; }
        public string AreaCode { get; set; }
        public int ProvinceId { get; set; }
        public virtual Province Province { get; set; }

        public virtual ICollection<CityCompany> CityCompanies { get; set; }
    }
}